package com.atguigu.gmall.product.service;

import com.atguigu.gmall.product.entity.SpuSaleAttr;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *
 */
public interface SpuSaleAttrService extends IService<SpuSaleAttr> {

    List<SpuSaleAttr> getSpuSaleAttrList(Long spuId);

    /**
     * 比上方的方法多加了一个order排序，保证商品详情页销售属性有序
     * @param spuId
     * @return
     */
    List<SpuSaleAttr> getSpuSaleAttrListOrder(Long spuId,Long skuId);
}
